<template>
  <div>
    <div ref="canvas"></div>
  </div>
</template>

<script lang="ts" setup>
import {nextTick, onMounted, ref} from "vue";
// 引入 three js
import * as THREE from "three"
import ThreeJs from "@/views/ThreeJs";

const canvas = ref<any>(null);

onMounted(() => {
  nextTick(() => {
    const threeJs = new ThreeJs(canvas.value);
  })
})

</script>
